<?php
class CMS extends Modulo{

	public function __construct(){
			parent::__construct();
			if(!isset($_SESSION["sessao_usuario_cms"]["user"]) || !isset($_SESSION["sessao_usuario_cms"]["hash"]) || $_SESSION["sessao_usuario_cms"]["hash"] != md5("admin")){
				$this->redirecionar(BASE."/login");
			}
			$this->templateBase = "cms/template.php";
	}
	
	public function index() {
		$this->despachar("cms/index.php");
	}
}
?>